package com.cloudmusic.api.service;

import com.cloudmusic.api.dto.HomeDataDto;
import com.cloudmusic.api.entity.Admin;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @ description:
 * @ date:      2020/9/26
 * @ time:      21:24
 * @ author:    Zhang wei
 * @ since:     1.0.0
 */

public interface AdminService {

    Integer addAdmin(Admin admin);

    Integer delSingleAdmin(Integer id);

    Integer modifyAdmin(Admin admin);

    PageInfo<Admin> findAdminsByPage(String adminName, Integer roleId, Integer offset, Integer limit);

    Admin findAdminById(Integer id);

    Admin getAdminByName(String adminName);

    int updateAdmin(Admin admin);

    HomeDataDto getHomeData();

}
